<extend name="Public/base"/>

<block name="style">
<link href="__CSS__/jtbk.css" rel="stylesheet" type="text/css"/>
</block>
<block name="content">   
    <ul class="nav nav-tabs">
	   <li ><a href="{:U('Shiti/index')}"><i class="glyphicon glyphicon-home"></i>首页</a></li>
     <li ><a href="{:U('Shiti/add')}">试题上传</a></li>
     <li ><a href="{:U('Shiti/search')}">试题搜索</a></li>
	   <li class="active"><a href="{:U('Shiti/detail','id='.$alist['id'])}" >{$alist.title}</a><li>
   </ul>
	
    <div class="clearfix"><br/></div>
   <!-- 备课资料详情面板 start --> 
   <div class="col-md-10">
    <div class="panel panel-info">
          <div class="panel-heading">
               <h3 class="panel-title">{$alist.subject}{$alist.grade}《{$alist.title}》 <span class="pull-right">上传时间：{$alist.update_time|date='Y-m-d',###}</span></h3>
          </div>
          <div class="panel-body">
          <h2>命题信息</h2>
          <div class="panel-heading">学科：【{$alist.subject}】
              年级：【{$alist.grade}】
              标题：【{$alist.title}】
              命题人：【{$alist.teacher}】</div>

            <div class="clearfix"></div>
            <a href="{:U('Jtbk/Shiti/download',array('fid'=>$alist['id']))}" 
            class="btn btn-lg btn-primary pull-right"><span class="glyphicon glyphicon-floppy-disk"></span>点击下载</a>


           </div>
            <div class="panel-footer">
                  <div class="label label-info">{$alist.subject}{$alist.grade}{$alist.title}</div>
                  <div class="label label-info"></div>                  
                  <div class="label label-info"></div>

                <div class="pull-right">
                     <span style="color:#0088AA"><i class="glyphicon glyphicon-file"></i>附件下载:</span>
                       <if condition="!$alist['file_url']">【暂无】</if>
                       <else>
                              <a style="margin-left:15px" href="{:U('Jtbk/Shiti/download',array('fid'=>$alist['id']))}" ><span style="color:#0088AA"><i class="glyphicon glyphicon-save"></i>{$alist.cate}</span></a>
                   </else> 
                 </div>
             </div>
    </div>
           
           <div class="col-md-12 main_content"></div>
 </div> 
 <!--备课资料详情面板end -->
</block>

